Skip to content

Apply PR review feedback: CI hardening, lint, URL fix, code cleanup#24

Merged
lord63 merged 2 commits intomigrate-ci-uvfrom
copilot/sub-pr-23
Mar 21, 2026
Merged

Apply PR review feedback: CI hardening, lint, URL fix, code cleanup#24
lord63 merged 2 commits intomigrate-ci-uvfrom
copilot/sub-pr-23

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 21, 2026

Addresses four review comments on the modernization PR.

Changes

  • CI: uv sync --devuv sync --dev --frozen to enforce lockfile and fail fast on drift
  • CI: Add explicit ruff check . lint step so style regressions are caught in CI
  • pyproject.toml: Add ruff to dev dependencies; fix homepage URL http://https://
  • pyspin/spin.py: Remove redundant str(...) wrapper around an already-string literal in _spin_cursor
  • uv.lock: Regenerated to include ruff

⚡ Quickly spin up Copilot coding agent tasks from anywhere on your macOS or Windows machine with Raycast.

Copilot AI changed the title [WIP] Modernize project Apply PR review feedback: CI hardening, lint, URL fix, code cleanup Mar 21, 2026
Copilot AI requested a review from lord63 March 21, 2026 09:45
@lord63 lord63 marked this pull request as ready for review March 21, 2026 09:45
Copilot AI review requested due to automatic review settings March 21, 2026 09:45
@lord63 lord63 merged commit 8cab5b6 into migrate-ci-uv Mar 21, 2026
6 checks passed
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR applies prior review feedback by tightening CI reproducibility, adding explicit linting, fixing a project metadata URL, and performing a small code cleanup in the spinner output.

Changes:

  • Harden CI dependency installation by using uv sync --dev --frozen and add a ruff check . lint step.
  • Add ruff to dev dependencies and regenerate uv.lock accordingly.
  • Fix the project homepage URL and remove a redundant str(...) wrapper in _spin_cursor.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.

File Description
uv.lock Adds ruff to the locked dev dependency set.
pyspin/spin.py Simplifies _spin_cursor by removing a redundant string conversion.
pyproject.toml Adds ruff to the dev dependency group and updates Homepage to HTTPS.
.github/workflows/ci.yml Freezes dependency sync and introduces a ruff lint step in CI.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

run: uv sync --dev --frozen

- name: Lint
run: uv run ruff check .
Copy link

Copilot AI Mar 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ruff check . will lint the entire repo and should fail on existing violations (e.g., example/example_spin.py has an unused loop variable i that triggers F841). To keep CI green, either fix the existing violations (use _ instead of i / remove the variable) or configure ruff to exclude example/ (or ignore F841) via pyproject.toml or CI flags.

Suggested change
run: uv run ruff check .
run: uv run ruff check . --exclude example

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants